package com.ruoyi.lession.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.lession.common.ResultInfo;
import com.ruoyi.lession.entily.ContentSum;
import com.ruoyi.lession.entily.Lesson;
import com.ruoyi.lession.entily.TitleContent;
import com.ruoyi.lession.service.LessonService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 朱鑫杰
 */
@RestController
@RequestMapping("es")
public class LessonController {

    @Resource
    LessonService lessonService;

    /**
     * Es对课程进行高亮区间分页查询列表展示
     * @param
     * @return 朱鑫杰
     */
    @RequestMapping("lessonList")
    public ResultInfo lessonlist(@RequestBody Lesson lesson){
        ResultInfo resultInfo =lessonService.findByEsLessonList(lesson);
        return resultInfo;
    }

}
